<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="renderer" content="webkit">
<meta name="msapplication-tap-highlight" content="no" /><!-- winphone 点击无高光 -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<title>演示例子</title>
<script src="exportExcel.js" type="text/javascript"></script>
<script src="xlsx.core.min.js" type="text/javascript"></script>



</head>
<body>
<style>

</style>
<button id="out">导出xlsx格式的excel</button>

<script>
 var arr = [
    ['姓名', '性别', '年龄', '民族'],
    ['张三', '男', '8', '汉'],
    ['李四', '女', '12', '汉'],
    ['王五', '男', '2', '汉'],
	['赵六', '男', 5, '汉']
  ];
document.getElementById('out').onclick=function(){
exportExcel(arr,'导出.xlsx');
}


</script>
</body>
</html>
